{extend name="ly_common/index_menu" /}

{block name="main_content"}
<section style='background: url("<?php echo $slider['thumb'];?>") center center repeat; background-size: cover;' class="relative-positioned">
<!-- Carousel Start-->
<div class="home-carousel">
  <div class="dark-mask mask-primary"></div>
  <div class="container">
    <div class="homepage owl-carousel">
      {notempty name="$block3['content']['lists']"}
      <?php $intI = 1;?>
      {foreach $block3['content']['lists'] as $k=>$v}
      <div class="item">
        <div class="row">
          <?php if(($k%2) == 1){?>
          <div class="col-md-5 text-right">
            <h2>{$v.title ?: ''}</h2>
            <p>{$v.content ?: ''}</p>
          </div>
          <div class="col-md-7"><img src="{$v.thumb ?: ''}" alt="{$v.title ?: ''}" class="img-fluid"></div>
          <?php }else{?>
          <div class="col-md-7"><img src="{$v.thumb ?: ''}" alt="{$v.title ?: ''}" class="img-fluid"></div>
          <div class="col-md-5 text-right">
            <h2>{$v.title ?: ''}</h2>
            <p>{$v.content ?: ''}</p>
          </div>

          <?php }?>

        </div>
      </div>
      {/foreach}
      {/notempty}

    </div>
  </div>
</div>
<!-- Carousel End-->
</section>
<section class="bar">
  <div class="container text-center">
    <div class="col-md-12">
      <div class="heading text-center">
        <h2>主营业务</h2>
      </div>
      <div class="row">
        {notempty name="$block5['content']['lists']"}
        {foreach $block5['content']['lists'] as $k=>$v}
        <?php
                  if($k == 0){
                    $strStyle = "fa-lightbulb-o";
                  }elseif($k == 1){
                    $strStyle = "fa-print";
                  }else{
                    $strStyle = "fa-globe";
                  }
                ?>
        <div class="col-lg-4 col-md-6">
          <div class="box-simple">
            <div class="icon-outlined"><i class="fa <?php echo $strStyle;?>"></i></div>
            <h3 class="h4"><a href="{:url("/item/3")}" style="color: #000000;">{$v.title ?: ''}</a></h3>
            <p><a href="{:url("/item/3")}" style="color: #999;">{$v.content ?: ''}</a></p>
          </div>
        </div>
        {/foreach}
        {/notempty}
      </div>
    </div>
  </div>
</section>
<section class="bar background-pentagon no-mb">
  <div class="container">
    <div class="row showcase text-center">
      <div class="col-md-4 col-sm-6">
        <div class="item">
          <div class="icon-outlined icon-sm icon-thin">
            <i class="fa fa-map-marker"></i>
          </div>
          <h4>
            <span class="h1 counter"><?php echo !empty($block11['content']['city'])?htmlspecialchars_decode($block11['content']['city']):0;?></span>
            <br>城市
          </h4>
        </div>
      </div>
      <div class="col-md-4 col-sm-6">
        <div class="item">
          <div class="icon-outlined icon-sm icon-thin"><i class="fa fa-copy"></i></div>
          <h4><span class="h1 counter"><?php echo !empty($block11['content']['project'])?htmlspecialchars_decode($block11['content']['project']):0;?></span><br>项目</h4>
        </div>
      </div>
      <div class="col-md-4 col-sm-6">
        <div class="item">
          <div class="icon-outlined icon-sm icon-thin"><i class="fa fa-user"></i></div>
          <h4><span class="h1 counter"><?php echo !empty($block11['content']['partner'])?htmlspecialchars_decode($block11['content']['partner']):0;?></span><br>合作伙伴</h4>
        </div>
      </div>

    </div>
  </div>
</section>
<section class="bar background-white no-mb">
  <div data-animate="fadeInUpBig" class="container">
    <div class="row">
      <div class="col-md-12">
        <div class="heading text-center">
          <h2>客户案例</h2>
        </div>
          <?php echo !empty($block4['content']['desc'])?htmlspecialchars_decode($block4['content']['desc']):"";?>

        <div class="row portfolio text-center color-white">

          {notempty name="$block4['content']['lists']"}
          {foreach $block4['content']['lists'] as $k=>$v}
          <div class="col-md-4">
            <div class="box-image">
              <div class="image"><img src="{$v.thumb ?: ''}" alt="" class="img-fluid">
                <div class="overlay d-flex align-items-center justify-content-center">
                  <div class="content">
                    <div class="name">
                      <h3><a href="{$v.link ?: ''}" class="color-white">{$v.title ?: ''}</a></h3>
                    </div>
                    <div class="text">
                      <p class="">{:mb_substr($v.content,0,18,'utf-8')}</p>
                      <p class="buttons">
                        <a href="{$v.link ?: ''}" class="btn btn-template-outlined-white">查看</a>
                        <!--<a href="#" class="btn btn-template-outlined-white">Website</a>-->
                      </p>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          {/foreach}
          {/notempty}
        </div>
        <div class="see-more text-center">
          <a href="{:url("/item/4")}" class="btn btn-template-outlined">查看更多案例</a>
        </div>
      </div>
    </div>
  </div>
</section>
<section class="bar bg-gray no-mb">
  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <div class="heading text-center">
          <h3>合作企业</h3>
        </div>
        <ul class="list-unstyled owl-carousel customers no-mb">
          {notempty name="block8['content']['lists']"}
          <?php $aryData = $block8['content']['lists'];?>
          {foreach $aryData as $v}
          <li class="item">
            <a href="javascript:;">
              <img src="{$v.thumb ?: ''}" style="cursor: pointer;" title="{$v.title ?: ''}" alt="{$v.title ?: ''}" class="img-fluid">
            </a>
          </li>
          {/foreach}
          {/notempty}
        </ul>
      </div>
    </div>
  </div>
</section>
<section class="bar background-white no-mb">
  <div class="container">
    <div class="col-md-12">
      <div class="heading text-center">
        <h2>最新资讯</h2>
      </div>

      <div class="row">

        {notempty name="$block9['content']['lists']"}
        <?php $aryData = $block9['content']['lists'];?>
        {foreach $aryData as $v}
        <div class="col-lg-3">
          <div class="home-blog-post">
            <div class="image">
              <img src="{$v.thumb ?: ''}" alt="{$v.title ?: ''}" class="img-fluid">
              <div class="overlay d-flex align-items-center justify-content-center">
                <a href="{$v.link ?: 'javascript:;'}" class="btn btn-template-outlined-white">
                  <i class="fa fa-chain"> </i> 查看详情
                </a>
              </div>
            </div>
            <div class="text">
              <h4><a href="{$v.link ?: 'javascript:;'}">{:mb_substr($v.title,0,18,'utf-8')}...</a></h4>
              <p class="intro">{:mb_substr($v.content,0,28,'utf-8')}...</p>
              <!--<a href="{$v.link ?: 'javascript:;'}" class="btn btn-template-outlined">查看详情</a>-->
            </div>
          </div>
        </div>
        {/foreach}
        {/notempty}

      </div>
    </div>
  </div>
</section>
{/block}